package com.lcq.practice.springboot.universal.demo.test_mybatis_plus;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lcq.practice.springboot.universal.demo.commmon.UserPo;
import com.lcq.practice.springboot.universal.demo.test_mybatis_plus.mapper.UserPlusMapper;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

/**
 * @ClassName MyBatisPlusTest
 * @Description
 * @Author lichuanqi
 * @Date 2022/2/12 8:55
 * @Version 1.0
 **/
@SpringBootTest
public class MyBatisPlusTest {
    @Resource
    private UserPlusMapper userPlusMapper;

    @Test
    public void test(){
        UserPo userPo = userPlusMapper.selectOne(new QueryWrapper<UserPo>().eq("id", "1"));
        System.out.println(userPo);
    }
}
